package com.xiaoxing.salesclient.mvp.ui.adapter;

import android.content.Context;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.xiaoxing.salesclient.mvp.ui.entity.ZuiXinXiaoXi;

import java.util.List;

import cn.iwgang.countdownview.CountdownView;
import xiaoxing.com.salesclient.R;


/**
 * Created by tad on 2017/11/16.
 */

public class ZuiXinXiaoXiAdapter extends BaseQuickAdapter<ZuiXinXiaoXi, BaseViewHolder> {
    private Context mContext;

    public ZuiXinXiaoXiAdapter(Context context, @Nullable List<ZuiXinXiaoXi> data) {
        super(R.layout.sales_client_listitem_zui_xin_xiao_xi, data);
        this.mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, ZuiXinXiaoXi item) {

    }

    private void initCountdownView(BaseViewHolder viewHolder) {
        CountdownView mCvCountdownViewTest4 = (CountdownView) viewHolder.getView(R.id.cv_countdownView);
        long time4 = (long) 150 * 24 * 60 * 60 * 1000;
        mCvCountdownViewTest4.start(time4);
    }
}
